
<div  class="row">
	<div  class="col-md-8">
		<portlet title="{{$Wx['Wx']['name']}}文章">
			{{if $user_cates}}
			<ul class="nav nav-tabs">
				<li {{if empty($_GET['cate_id'])}} class="active"{{/if}}>
			<a href="/wxes/{{($Wx['Wx']['slug']?$Wx['Wx']['slug']:$Wx['Wx']['id'])}}">全部</a></li>
				{{loop $user_cates $cate}}
					<li {{if $_GET['cate_id']==$cate['UserCate']['id']}} class="active"{{/if}}>
			<a href="/wxes/{{($Wx['Wx']['slug']?$Wx['Wx']['slug']:$Wx['Wx']['id'])}}?cate_id={{$cate['UserCate']['id']}}">{{$cate['UserCate']['name']}}</a></li>
				{{/loop}}
			</ul>
			{{/if}}
<?php $category_control_name = 'articles';?>
{{loop $Wx['Article']  $item}}
	{{template categories/_list}}
{{/loop}}
<div>
{{if $_GET['article_page'] > 1}}
<a href="?article_page={{($_GET['article_page']-1)}}&cate_id={{$_GET['cate_id']}}">上一页</a>
{{/if}}
{{if count($Wx['Article']) == 30}}
<?php if(empty($_GET['article_page'])){$_GET['article_page']=1;} ?>
<a class="pull-right" href="?article_page={{($_GET['article_page']+1)}}&cate_id={{$_GET['cate_id']}}">下一页</a>
{{/if}}

</div>
		</portlet>
	</div>
	
	<div  class="col-md-4">
		<portlet portlet="notitle">
			<h2 class="Content-title"><?php echo $Wx['Wx']['name']; ?></h2>
				    <div  id="productinfo" class="clearfix">
						<?php echo $Wx['Wx']['summary']; ?>
				    </div>
				    <div style="text-align:center;">
				    <img width="200px" title="扫描二维码关注<b><?php echo $Wx['Wx']['name']; ?>" alt="" src="{{$this->Html->url($Wx['Wx']['qrcode'])}}" >
				    <p>扫描二维码关注 “<b><?php echo $Wx['Wx']['name']; ?></b>”</p>
				    </div>
				<div class="Content-info">
				   查看次数：  <span class="ui-stats-num" id="Stats-Wx-{{$Wx['Wx']['id']}}-view_nums"><?php echo $Wx['Wx']['view_nums']; ?></span>
				</div>
		
		</portlet>	
		<portlet model="Wx" cached="900" showpages="0" title="最新收录" 		
info="fields[]=Wx.id&fields[]=Wx.name&fields[]=Wx.created" 
		portlet="default" list_tpl="scripts" limit="8" order="id desc" ulclass="portlet-title-list">
		</portlet>
		
	</div>
</div>
